package web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import dao.UserDAO;

import entity.User;


public class TestController extends AbstractControllerUtil implements Controller {
	
	private UserDAO userDAO = null;

	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
			
		User user = new User();
		user.setYwsId(12356);
		user.setYwsLoginName("aalogin");
		user.setYwsNickName("bbnick");
		user.setHeart("mmhearttt");
		user.setJoinTime("2012-12-20 11:23:45");
		user.setDenied(true);
		user.setFacePath("mmmmmmm.gif");
		userDAO.AddUser(user);
		return null;

	}


	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}


}
